<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    #tb {
        border: burlywood 1px solid;
        width: 50%;
        margin: 0 auto;
    }

    #tb th, td {
        border: 1px solid bisque;
        text-align: center;
    }
</style>
<body>
<table id="tb" cellpadding="0px" cellspacing="0px">
    <tr>
        <th>编号</th>
        <th>部门名称</th>
        <th>地址</th>
    </tr>
    <tr th:each="dept : ${deptList}">
        <td th:text="${dept.deptno}"></td>
        <td th:text="${dept.dname}"></td>
        <td th:text="${dept.loc}"></td>
    </tr>
</table>
</body>
</html>